package com.tebiecloud.mpweixin.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tebiecloud.mpweixin.client.model.entity.MpweixinMggFlow;
import com.tebiecloud.common.mybatis.base.service.IBaseService;
import com.tebiecloud.mpweixin.client.model.vo.FundsFlowListVO;

import java.util.Map;

/**
 * 用户乖乖币记录表 服务类
 * @author tebie
 * @date 2019-09-16
 */
public interface MpweixinMggFlowService extends IBaseService<MpweixinMggFlow> {

    /**
     * 乖乖币流水明细
     * @return
     */
    IPage<FundsFlowListVO> selectFundsFlowList(Integer page, Integer limit);

    /**
     * 记录乖乖币流水
     * @param userId
     * @param number
     * @param amount
     * @param type
     * @return
     */
    Map<String,String> saveCoinFlow(Long userId, Long number, int amount, int type);
}
